package com.example.demo.repository.two;

import com.example.demo.entity.two.DeviceItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by pengwan on 2017/6/25.
 */
public interface DeviceItemRepository extends JpaRepository<DeviceItem, Integer> {
    @Query("select d from DeviceItem d where d.devicePage_Id=?1 order by d.deviceItemSort")
    List<DeviceItem> findDeviceItemList(Integer Id);
}
